<?php
	include 'lib/BmobObject.class.php';
	include 'lib/BmobUser.class.php';
class buser extends CI_Model {
    public function __construct()
    {
        parent::__construct();
    }
	
	public function get($user){
		try {
			$bmobObj = new BmobObject("_User");
			$res=$bmobObj->get("",array('where={"sxAcount":"'.$user.'"}','limit=1')); 
			if(count($res->results)==0){
				return null;
			}else{
				return $res->results[0];
			}
		} catch (Exception $e) {
   		 return null;
		}
	}
	

}
 ?>  